﻿using System;
using System.Collections.Generic;

namespace Meqs.Entity
{
    [Serializable]
    public class ClassesDistributionEducation
    {
        public ClassesDistributionEducation()
        {
            m_RID = 0;

        }

        #region RID

        private int m_RID;

        public int RID
        {
            get { return m_RID; }
            set { m_RID = value; }
        }

        #endregion

        #region ItemID

        private int m_ItemID;

        public int ItemID
        {
            get { return m_ItemID; }
            set { m_ItemID = value; }
        }

        #endregion

        #region TestID

        private int m_TestID;

        public int TestID
        {
            get { return m_TestID; }
            set { m_TestID = value; }
        }

        #endregion

        #region ClassID

        private int m_ClassID;

        public int ClassID
        {
            get { return m_ClassID; }
            set { m_ClassID = value; }
        }

        #endregion

        #region InNum

        private int m_InNum;

        public int InNum
        {
            get { return m_InNum; }
            set { m_InNum = value; }
        }

        #endregion

        #region OverNum

        private int m_OverNum;

        public int OverNum
        {
            get { return m_OverNum; }
            set { m_OverNum = value; }
        }

        #endregion

        #region SchoolMark

        private string m_SchoolMark;

        public string SchoolMark
        {
            get { return m_SchoolMark; }
            set { m_SchoolMark = value; }
        }

        #endregion

        #region Dirty

        private short? m_Dirty;

        public short? Dirty
        {
            get { return m_Dirty; }
            set { m_Dirty = value; }
        }

        #endregion



        #region Rewrite Equals and HashCode

        /// <summary>
        /// 
        /// </summary>
        public override bool Equals(object obj)
        {
            if (this == obj) return true;
            if ((obj == null) || (obj.GetType() != GetType())) return false;
            ClassesDistributionEducation castObj = (ClassesDistributionEducation)obj;
            return (castObj != null)
 && m_RID == castObj.RID;
        }

        /// <summary>
        /// 用唯一值实现GetHashCode
        /// </summary>
        public override int GetHashCode()
        {
            int hash = 97;
            hash = hash * 97
 * m_RID.GetHashCode(); return hash;
        }

        #endregion


    }
}